class DefaultConfig(object):
	modelpath = '/mnt/disk2/captcha/captcha-ocr1/train/pytorch-crnn.pth'
	train_data_root = '/mnt/disk1/datasets/captcha_100w/data_train.txt'
	validation_data_root = '/mnt/disk1/datasets/captcha_100w/data_test.txt'
	image_path = '/mnt/disk1/datasets/captcha_100w/images'
	# train_data_root = '/mnt/disk1/code_work/data_train.txt'
	# validation_data_root = '/mnt/disk1/code_work/data_test.txt'
	# image_path = '/mnt/disk1/code_work/images'
	batch_size = 32
	img_h = 32
	num_workers = 12
	use_gpu = True
	max_epoch = 100
	learning_rate = 1e-3
	weight_decay = 1e-4
	printinterval = 200
	valinterval = 1000
	updateLR = 10000

def parse(self,**kwargs):
	for k,v in kwargs.items():
		setattr(self,k,v)

DefaultConfig.parse = parse
opt = DefaultConfig()
